package com.indusfo.spc.service;

import com.indusfo.spc.pojo.InspectWork;
import com.indusfo.spc.pojo.InspectWorkDetail;
import com.indusfo.spc.vo.JSONObject;

public interface InspectWorkService {
    // 查询
    JSONObject selectInspectWork(InspectWork inspectWork,String startDate,String endDate);
    // 新增
    JSONObject insertInspectWork(InspectWork inspectWork,Integer[] qualifiedIds);
    // 修改
    JSONObject updateInspectWork(InspectWork inspectWork,Integer[] qualifiedIds);
    // 停用/启用/删除
    JSONObject definedInspectWork(Long[] inspectWorkIds, Integer[] auditStates, Integer dataState);
    // 审核/反审核
    JSONObject auditInspectWork(Long[] inspectWorkIds, Integer[] auditStates, Integer auditState);
    // 查询指定设备的点检项目
    JSONObject queryInspectByDevice(InspectWork inspectWork);
    // 查询设备点检作业明细
    JSONObject queryInspectWorkDetail(InspectWorkDetail inspectWorkDetail);
    // 新增设备点检作业明细时查询点检项目
    JSONObject filterInspectList(InspectWork inspectWork);
}
